package com.wxhandle.cleandemo.api.security;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;

@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Data
public class RequestHandlerMapping {
    private String method;
    private String pattern;
    private String handler;

    public static RequestHandlerMapping of(String method, String pattern, String handler) {
        return new RequestHandlerMapping(method, pattern, handler);
    }
}
